<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href='<?php echo asset_url()."customcss/custombody.css"; ?>'>

<title>AITAA&reg - View Achievements</title>

<style type="text/css">


</style>
</head>
<body>

<div id="container"><br>
<div class="col-md-8">
<!-- add filters here -->
</div>
<div class="col-md-8">
</div>
<br><br><br>
<table class="table table-striped">

<?php 
	$i = 1;
	if(!empty($results))
	{
	foreach ($results as $row)
		{
			if($i++ == 1) 
			{
				echo "<tr><td>".$row->title."</td><td>".$row->name.", ".$row->deptCode.", ".$row->batch." currently at ".$row->current_company." </td></tr>";
			}
			else
			{
				echo "<tr><td>".$row->title."</td><td>".$row->name.", ".$row->deptCode.", ".$row->batch." currently at ".$row->current_company." </td></tr>";
			}
			echo "<tr><td colspan=2>".$row->description."</td></tr>";
		}
	}
	else
		echo "<tr><td colspan=7>No Rows to display</td></tr>";

?>
</table>
<p class="pagination"><?php if(!empty($links)) echo $links; ?></p>
</div>
	<script src='<?php echo asset_url()."/js/bootstrap.min.js"?>'></script>
	<script src='<?php echo asset_url()."/js/jquery-1.10.2.min.js"?>'></script>
	</body>
</html>